home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 3 / MacMania 3.toast / Demo's / KarmaMacDemo / GAME_G1.DXR / 00239.ls < prev    next >
Encoding:
Text File  |  1995-10-24  |  1.9 KB  |  57 lines

  1. on moveRightDead2
  2.   global SpinCount
  3.   if SpinCount < 1 then
  4.     set the locV of sprite 28 to the locV of sprite 28 - 8
  5.     set the locH of sprite 28 to the locH of sprite 28 + 6
  6.   else
  7.     if SpinCount < 3 then
  8.       set the locV of sprite 28 to the locV of sprite 28 + 2
  9.       set the locH of sprite 28 to the locH of sprite 28 + 1
  10.     else
  11.       if SpinCount < 5 then
  12.         set the locV of sprite 28 to the locV of sprite 28 + 1
  13.         set the locH of sprite 28 to the locH of sprite 28 + 1
  14.       else
  15.         if SpinCount < 7 then
  16.           set the locV of sprite 28 to the locV of sprite 28 + 1
  17.           set the locH of sprite 28 to the locH of sprite 28 + 2
  18.         else
  19.           if SpinCount < 14 then
  20.             set the locH of sprite 28 to the locH of sprite 28 + 3
  21.           else
  22.             if SpinCount < 19 then
  23.               set the locH of sprite 28 to the locH of sprite 28 + 2
  24.             else
  25.               if SpinCount < 24 then
  26.                 set the locV of sprite 28 to the locV of sprite 28 + 1
  27.                 set the locH of sprite 28 to the locH of sprite 28 + 2
  28.               else
  29.                 if SpinCount < 29 then
  30.                   set the locV of sprite 28 to the locV of sprite 28 + 2
  31.                   set the locH of sprite 28 to the locH of sprite 28 + 2
  32.                 else
  33.                   if SpinCount < 34 then
  34.                     set the locV of sprite 28 to the locV of sprite 28 + 2
  35.                     set the locH of sprite 28 to the locH of sprite 28 + 1
  36.                   else
  37.                     nothing()
  38.                   end if
  39.                 end if
  40.               end if
  41.             end if
  42.           end if
  43.         end if
  44.       end if
  45.     end if
  46.   end if
  47.   if SpinCount = 34 then
  48.     repeat with z = 3 to 28
  49.       puppetSprite(z, 0)
  50.     end repeat
  51.     go("startMovie")
  52.   else
  53.     set SpinCount to SpinCount + 1
  54.   end if
  55.   updateStage()
  56. end
  57.